package com.daoliuhe.scaffold.model;

import java.math.BigDecimal;

/**
 * 登录历史记录
 */
public class LoginHistory extends Pagable {
    /**
     * 主键
     */
    private BigDecimal id;
    /**
     * 用户id
     */
    private BigDecimal userId;

    /**
     * 用户名称
     */
    private String userIdName;

    /**
     * 登录类型：1：登录；2：登出
     */
    private String type;
    /**
     * 登录地址
     */
    private String address;
    /**
     * 登录、登出时间
     */
    private String createTime;

    /**
     * 创建时间开始
     */
    private String createTimeBegin;

    /**
     * 创建时间结束
     */
    private String createTimeEnd;

    /**
     * 部门名称
     */
    private String deptName;

    /**
     * 邮箱
     */
    private String email;

    public BigDecimal getId() {
        return id;
    }

    public void setId(BigDecimal id) {
        this.id = id;
    }

    public BigDecimal getUserId() {
        return userId;
    }

    public void setUserId(BigDecimal userId) {
        this.userId = userId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCreateTimeBegin() {
        return createTimeBegin;
    }

    public void setCreateTimeBegin(String createTimeBegin) {
        this.createTimeBegin = createTimeBegin;
    }

    public String getCreateTimeEnd() {
        return createTimeEnd;
    }

    public void setCreateTimeEnd(String createTimeEnd) {
        this.createTimeEnd = createTimeEnd;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUserIdName() {
        return userIdName;
    }

    public void setUserIdName(String userIdName) {
        this.userIdName = userIdName;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @Override
    public String toString() {
        return "LoginHistory{" +
                "id=" + id +
                ", userId=" + userId +
                ", userIdName='" + userIdName + '\'' +
                ", type='" + type + '\'' +
                ", address='" + address + '\'' +
                ", createTime='" + createTime + '\'' +
                ", deptName='" + deptName + '\'' +
                ", email='" + email + '\'' +
                '}';
    }
}